
const { SerialPort } = require('serialport')
const M=require("ming_node");
let bc= require("./BinConvert.js")
sp = new SerialPort({ path: "COM7", baudRate: 115200 });

async function main(){
    console.log("02 57 00 30 00 00 01 00 00 03")
    console.log(bc.hexStr2Bytes("02 57 00 30" +
        "" +
        " 00 00 01 00 00 03"))


}

main()